import request from '@/utils/request'
export default {
        //1.最热置顶列表
        getHot() {
            return request({
                url: `/api/cms/album/top/hots`,
                method: 'get'
            })
        },
        //2.删除置顶   
        deleteTopById(id){
            return request({
                url: `/api/cms/album/top/top/${id}`,
                method: 'delete'
            })
        },
        //3.添加置顶
        addTop(params){
            return request({
                url: `/api/cms/album/top/top`,
                method: 'post',
                data:params
            })
        },

        //4.修改置顶
        updataTop(params){
            return request({
                url: `/api/cms/album/top/top`,
                method: 'put',
                data:params
            })

        },
        getLike(){
            return request({
                url:`/api/cms/album/top/likes`,
                method:'get'
            })
         }
    }